﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Net.Mail;

namespace WebUI.Controllers
{
    public static class GlobalController
    {

        public static void SendEmail(MailMessage message)
        {
            SmtpClient smtp = new SmtpClient();
            smtp.EnableSsl = true;
            smtp.Send(message);
        }

    }
}
